<template>
	<view>
		<search @click="search()"></search>
	</view>
</template>

<script>
	import search from './components/search.vue'
	export default {
		components:{
			search
		},
		data() {
			return {
				
			}
		},
		methods: {
			// 搜索
			search(value){
				let result = value.trim()
				uni.showToast({
				    title: result ? `当前搜索内容是${result}` : '请输入搜索内容',
						icon:'none',
				    duration: 2000
				});
			}
		}
	}
</script>

<style>

</style>
